using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN HeDaoTaoService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: HeDaoTaoService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class HeDaoTaoService : IHeDaoTaoService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: HeDaoTao_ID</para>
		/// <para>Output: HeDaoTaoEntity</para>
		///</summary>
		public HeDaoTaoEntity SelectOne(int HeDaoTao_ID){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectOne(HeDaoTao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaHeDaoTao</para>
		/// <para>Input: MaHeDaoTao</para>
		/// <para>Output: HeDaoTaoEntity</para>
		///</summary>
		public HeDaoTaoEntity SelectOneByMaHeDaoTao(string MaHeDaoTao){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectOneByMaHeDaoTao(MaHeDaoTao);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HeDaoTaoEntity</para>
		///</summary>
		public List<HeDaoTaoEntity> SelectAll(){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HeDaoTaoEntity</para>
		///</summary>
		public List<HeDaoTaoEntity> SelectAllFilter(string strFilter){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HeDaoTaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(HeDaoTaoEntity o){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HeDaoTaoEntity</para>
		/// <para>Output: HeDaoTaoEntity</para>
		///</summary>
		public HeDaoTaoEntity SaveRet(HeDaoTaoEntity o){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of HeDaoTaoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<HeDaoTaoEntity> list){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of HeDaoTaoEntity</para>
		/// <para>Output: List of HeDaoTaoEntity</para>
		///</summary>
		public List<HeDaoTaoEntity> SaveListRet(List<HeDaoTaoEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: HeDaoTaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(HeDaoTaoEntity o){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of HeDaoTaoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<HeDaoTaoEntity> list){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaHeDaoTao</para>
		/// <para>Input: NewMaHeDaoTao,HeDaoTao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaHeDaoTao(string NewMaHeDaoTao,int HeDaoTao_ID){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.UpdateMaHeDaoTao(NewMaHeDaoTao,HeDaoTao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenHeDaoTao</para>
		/// <para>Input: NewTenHeDaoTao,HeDaoTao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenHeDaoTao(string NewTenHeDaoTao,int HeDaoTao_ID){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.UpdateTenHeDaoTao(NewTenHeDaoTao,HeDaoTao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,HeDaoTao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int HeDaoTao_ID){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.UpdateGhiChu(NewGhiChu,HeDaoTao_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: HeDaoTaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(HeDaoTaoEntity o){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: HeDaoTao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int HeDaoTao_ID){
			HeDaoTaoDAO dao = new HeDaoTaoDAO();
			return dao.DeleteByID(HeDaoTao_ID);
		}
		#endregion

		#region Select,delete by HeDaoTao_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END HeDaoTaoWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

